<?php
header("Content-type:text/html; charset=utf-8");

//商户订单号
$pBillNo = date('YmdHis') . mt_rand(100000,999999);

//商户交易日期
$pDate = date('Ymd');

//商户返回地址
$url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://';
$url .= str_ireplace('localhost', '127.0.0.1', $_SERVER['HTTP_HOST']) . $_SERVER['SCRIPT_NAME'];
$url = str_ireplace('orderpay', 'OrderReturn', $url);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-Type" content="text/html; charset=utf-8" />
    <title>标准商户订单支付接口(新接口)</title>
    <style type="text/css">
      <!--
      TD {FONT-SIZE: 9pt}
      SELECT {FONT-SIZE: 9pt}
      OPTION {COLOR: #5040aa; FONT-SIZE: 9pt}
      INPUT {FONT-SIZE: 9pt}
      -->
	  body{ margin:0; padding:0;}
	  #form1{ margin:0; padding:0;}
	  #tb1{ border-collapse:collapse;}
	  #tb1 td{ border:1px solid #CCC;}
	  .b-ju{padding-left:5px;}
	  .input-j{ width:160px; height:20px; line-height:20px;}
    </style>
	<script language="javascript">
		function show(zhilian)
		{
			var obj = document.getElementById("tb1");

			if(zhilian == "1")
			{
				for(i=14; i<20; i++)
				{
					obj.rows[i].style.display = "block";
				}

				obj.rows[20].style.display = "none";
				obj.rows[21].style.display = "none";
			}
			else
			{
				for(i=14; i<20; i++)
				{
					obj.rows[i].style.display = "none";
				}

				obj.rows[20].style.display = "block";
				obj.rows[21].style.display = "block";
			}
		}
	</script>
  </head>
  <body>
  <div style="width:755px!important;_width:775px; border:1px solid #ccc; margin:0;">
    <form id="form1" action="/Lib/Order/CardOnlineIpsRmb/redirect.php" method="post"  >
    <br /><br />
      <div style=" width:423px; margin:0 auto;">
      <table id="tb1" width="423" cellspacing="0" cellpadding="3" bordercolordark="#FFFFFF" bordercolorlight="#333333" align="center">
        <tr> 
          <td height="30" bgcolor="#c1e0f5" colspan="2" align="center">
            <font color="#000"><b>梦之旅信用卡在线支付中心</b></font>
          </td>
        </tr>
       

        <tr > 
          <td width="123"  class="b-ju" height="28">持卡人姓名</td>
          <td width="286" class="b-ju" >
            <input type="text" name="pName" class="input-j" size="16" value="" />
          </td>
        </tr>
        <tr> 
          <td height="28" class="b-ju" >持卡人证件类型</td>
          <td class="b-ju" >
            <select name="pIDType" class="input-j">
              <option value="1" selected="selected">身份证</option>
              <option value="2">护照</option>
              <option value="3">军官证</option>
              <option value="4">回乡证</option>
              <option value="5">台胞证</option>
              <option value="6">港澳通行证</option>
              <option value="7">国际海员证</option>
              <option value="8">外国人永久居住证</option>
              <option value="9">其他</option>
            </select>
          </td>
        </tr>
        <tr> 
          <td height="28" class="b-ju" >持卡人证件号码</td>
          <td class="b-ju" >
            <input type="text" class="input-j" name="pIDNum" size="24" value="" />
          </td>
        </tr>
        <tr> 
          <td height="27" class="b-ju" >持卡人电话</td>
          <td class="b-ju" >
            <input type="text" class="input-j" name="pTel" size="16" value="" />
          </td>
        </tr>
       
        <tr> 
          <td  style="border:0"colspan="2" height="35" align="center"><br /><input type="image"  src="/images/ljzf.jpg" value="立即支付" /></td>
        </tr>
      </table></div>
    
<volist name="arr" id="vo">
<input type="hidden" value="<{$vo}>" id="<{$key}>" name="<{$key}>" ><br>
</volist>
        
        
        <input type="hidden" name="pOrderEncodeType" value="1" id="pOrderEncodeType">  
        <input type="hidden" name= "pGateWayType" value="1" id="pGateWayType">  
        <input type="hidden" name="pCurrency" size="16" value="RMB" />
        <input type="hidden" name="pMerCode" id="pMerCode" size="18" value="014740" /><!--商户号-->
        <input type="hidden" name="pLang"  id="pLang" size="18" value="GB" /><!--商户号-->
        <input type="hidden" name="pBillEXP" id="pBillEXP" size="16" value="2" />
         <input type="hidden" name="pRetEncodeType" id="pRetEncodeType" size="16" value="12" />
        
         
         
</form>
	<script language="javascript">
		show("");
	</script>
    
    
    
</div>    
</body>
</html>